package com.flea.hclv.controller;

import com.flea.hclv.model.entity.vo.HCustomerPayRecordVo;
import com.flea.hclv.service.HCustomerPayRecordService;
import com.flea.hclv.util.ServerResponse;
import com.flea.system.bean.FleaPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: project
 * @description: 客户缴费记录
 * @author: shiliqiang
 * @create: 2018-11-17 15:54
 * @version: 1.0
 */
@Controller
@RequestMapping("/flea/hclv/customer/pay/record/")
public class HCustomerPayRecordController {

    @Autowired
    private HCustomerPayRecordService hCustomerPayRecordService;

    @RequestMapping("selectAll")
    @ResponseBody
    public ServerResponse<FleaPage<HCustomerPayRecordVo>> selectAll(FleaPage<HCustomerPayRecordVo> paging,
                                                                    @RequestParam(value = "queryName", defaultValue = "")String queryName,
                                                                    @RequestParam(value = "queryStartTime", defaultValue = "")String queryStartTime,
                                                                    @RequestParam(value = "queryEndTime", defaultValue = "")String queryEndTime){
        return hCustomerPayRecordService.selectAll(paging.getCurPage(),paging.getPageSize(),queryName,queryStartTime,queryEndTime);
    }
}
